﻿using BPMN.Domain.Entity.SysDictonary;
using BPMN.Domain.Entity.Custom;
using BPMN.Domain.Entity.User;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BPMN.Domain;
using BPMN.Domain.Entity.Scheduling;
using BPMN.Domain.Entity.Routing;
using BPMN.Domain.Entity.Unit;
using BPMN.Domain.Entity.DefectiveModel;
using BPMN.Domain.Entity.Material;
using BPMN.Domain.ProcessModel;
using BPMN.Domain.Entity.Correlation;
using BPMN.Domain.Entity.EmployeePerformance;
using BPMN.Domain.Entity.RepairOrders;
using BPMN.Domain.Entity.Disposition;

namespace BPMN.Infrastructure
{
    public class MyDbContext : DbContext
    {
        /// <summary>
        /// 构造函数.
        /// </summary>
        /// <param name="options"></param>
        public MyDbContext(DbContextOptions<MyDbContext> options) : base(options)
        {
        }

        public virtual DbSet<UserInfo> UserInfos { get; set; }
        public virtual DbSet<Role> Roles { get; set; }
        public virtual DbSet<Permission> Permissions { get; set; }
        public virtual DbSet<UserRole> UserRoles { get; set; }
        public virtual DbSet<RolePermission> RolePermissions { get; set; }

        /// <summary>
        /// 映射自定义扩展字段表
        /// </summary>
        public virtual DbSet<Extend> Extend { get; set; }
        public virtual DbSet<Attributes> Attributes { get; set; }

        public virtual DbSet<RoleAuth> RoleAuth { get; set; }
        public virtual DbSet<Menu> Menu { get; set; }

        /// <summary>
        /// 字典
        /// </summary>
        public virtual DbSet<Dictionary> Dictionarys { get; set; }
        public virtual DbSet<DictionaryList> DictionaryLists { get; set; }
        /// <summary>
        /// 自定义编号规则主键ID
        /// </summary>
        public virtual DbSet<Custom> Customs { get; set; }
        /// <summary>
        /// 测试
        /// </summary>
        public virtual DbSet<Test> Tests { get; set; }
        public virtual DbSet<Test1> Test1 { get; set; }
        /// <summary>
        /// 计划
        /// </summary>
        public virtual DbSet<Plan> Plans { get; set; }
        /// <summary>
        /// 计划类型表
        /// </summary>
        public virtual DbSet<Plan_type> Plan_type { get; set; }


        /// <summary>
        /// 工艺路线表
        /// </summary>
        public virtual DbSet<Routings> Routings { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public virtual DbSet<Units> Units { get; set; }
        /// <summary>
        /// 工艺路线工序关系表
        /// </summary>
        public virtual DbSet<RoutingProcess> RoutingProcess { get; set; }


        /// <summary>
        /// 不良品表
        /// </summary>
        public virtual DbSet<Defective> Defectives { get; set; }

        /// <summary>
        /// 报工权限
        /// </summary>
        public virtual DbSet<Reporting> Reporting { get; set; }

        //工序
        public virtual DbSet<ProcessShows> ProcessShows { get; set; }



        /// <summary>
        /// 物料
        /// </summary>
        public virtual DbSet<Material> Materials { get; set; }


        /// <summary>
        /// 物料产品分类
        /// </summary>
        public virtual DbSet<Products> Productss { get; set; }


        public virtual DbSet<Products> Product { get; set; }    





        public virtual DbSet<Performance_based_pay> Performance_Based_Pays { get; set; }


        public virtual DbSet<RepairOrders> RepairOrders { get; set; }  //维修单信息表

        public virtual DbSet<Brands> Brands { get; set; }  //品牌信息表

        public virtual DbSet<Equipment> Equipment { get; set; }  //设备信息表
        public virtual DbSet<disposition> disposition { get; set; }
        /// <summary>
        /// 工序表
        /// </summary>
 



    }
}
